import request from '@/utils/request'
import cookie from 'js-cookie'
export default {

    getPageList(page, limit, courseId) {
        return request({
            url: `/eduservice/comment/${page}/${limit}`,
            method: 'get',
            params: { courseId }
        })
    },
    addComment(comment) {
        return request({
            url: `/eduservice/comment/auth/save`,
            method: 'post',
            data: comment,
            headers: {
                'token': cookie.get('youth_token')
            },
        })
    }

}